{% extends 'AdminsBundle:base:main.content.lists.div.html.twig' %}
{% block options %}
{% endblock %}
{% block tableHead %}
    <tr>
        <th width="6%">选择</th>
        <th align="left">配置名称</th>
        <th align="left">KEY</th>
        <th align="left">VALUE</th>
        <th align="left">注释</th>
        <th align="center" width="5%">管理</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for SiteSetting in lists %}
        <tr>
            <td align="center">
                <span class="checkall" style="vertical-align:middle;">
                    <input type="checkbox" name="ids[]" value="{{ SiteSetting.id }}"/>
                </span>
            </td>
            <td>{{ SiteSetting.name }}</td>
            <td align="left">
                <input id="key_{{ SiteSetting.id }}" type="text" value="{{ SiteSetting.key }}"  class="input" onkeydown="return checkNumber(event);" onblur="__doPostBack('setAttr','id={{ SiteSetting.id }}&key='+ $('#key_{{ SiteSetting.id }}').val())">
            </td>
            <td align="left">
                <input id="val_{{ SiteSetting.id }}" type="text" value="{{ SiteSetting.value }}"  class="input" onkeydown="return checkNumber(event);" onblur="__doPostBack('setAttr','id={{ SiteSetting.id }}&value='+ $('#val_{{ SiteSetting.id }}').val())">
            </td>
            <td>{{ SiteSetting.intro }}</td>
            <td align="center">
                <a href="{{ path("SiteSettingPreEdit",{'id':SiteSetting.id}) }}" class="img-btn edit"></a>
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
    {#{% include 'AdminsBundle:base:inc.js.pic.upload.twig' %}#}
    {#{% include 'AdminsBundle:base:inc.js.article.twig' %}#}
    {#{% include 'AdminsBundle:base:inc.js.form.valid.twig' %}#}
    {#{% include 'AdminsBundle:base:inc.js.date.picker.twig' %}#}
{% endblock %}

